﻿using MiniErp.Entity.DataStreams.DOs.AssetManagement;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MiniErp.Entity.DataStreams.DOs
{
    /// <summary>
    /// 位置信息实体
    /// </summary>
    [Table("Position")]
    public class Position : BaseEntity
    {
        /// <summary>
        /// 位置编号
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        [ConcurrencyCheck]
        public int PositionId { get; set; }

        /// <summary>
        /// 位置名称
        /// </summary>
        [MaxLength(12)]
        [Required]
        public string PositionName { get; set; }
        /// <summary>
        /// 位置地址
        /// </summary>
        [Required]
        public string PositionAddress { get; set; }
        #region 导航属性
        public virtual List<AssetInfo> AssetInfos { get; set; }
        #endregion
    }
}
